<?php
declare(strict_types=1);

use Phinx\Migration\AbstractMigration;

final class AddColumnCosUploadNameInVersionTable extends AbstractMigration
{

    public function up()
    {
        $this->table('version')
            ->addColumn('cos_upload_name', 'string', [
                'null' => false,
                'default' => '',
                'limit' => 512,
                'comment' => 'cos对象存储路径',
            ])->save();
    }

    public function down()
    {
        $this->table('version')->removeColumn('cos_upload_name')->save();
    }
}
